package org.imaginedays.androidall.appwidget;

import android.content.Context;

public class ApnLegacy {
	
	public ApnLegacy() {
	}

	public boolean getApnStatus(Context context) {
		ApnDao apn = new ApnDao(context.getContentResolver());
		
		return (apn.getApnState() == ApplicationConstants.State.ON?true:false);
	}

	public void setApnStatus(Context context, boolean on) {
		ApnDao apn = new ApnDao(context.getContentResolver());
		apn.switchApnState(on?ApplicationConstants.State.ON : ApplicationConstants.State.OFF);
	}

}
